package org.jeecg.modules.xj.points.service.impl;

import org.jeecg.modules.xj.points.entity.XjPoints;
import org.jeecg.modules.xj.points.mapper.XjPointsMapper;
import org.jeecg.modules.xj.points.service.IXjPointsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Map;

/**
 * @Description: 积分
 * @Author: jeecg-boot
 * @Date:   2023-08-11
 * @Version: V1.0
 */
@Service
public class XjPointsServiceImpl extends ServiceImpl<XjPointsMapper, XjPoints> implements IXjPointsService {

    @Autowired
    private XjPointsMapper xjPointsMapper;


    @Override
    public double getUserPoints(String userId) {

        return xjPointsMapper.getUserPoints(userId);
    }

    @Override
    public Map<String, Object> getUserVillagerById(String userId) {

        return xjPointsMapper.getUserVillagerById(userId);
    }
}
